package com.jf.cloud.payment.allinpay.util;

import com.jf.cloud.payment.allinpay.order.req.*;
import com.jf.cloud.payment.allinpay.order.resp.*;

/**
 * 订单服务 测试
 * @author LGH
 */
public class AllinpayOrderService {

	/**
	 * 冻结金额
	 * @param  fm 冻结参数
	 * @return FreezeMoneyRep 冻结金额返回参数
	 */
	public static FreezeMoneyResp freezeMoney(FreezeMoney fm){
		return AllinpayUtil.sendData(fm, FreezeMoneyResp.class);
	}

	/**
	 * 解冻金额
	 * @param  um 解冻参数
	 * @return FreezeMoneyRep 解冻金额返回参数
	 */
	public static FreezeMoneyResp unfreezeMoney(UnfreezeMoney um){
		return AllinpayUtil.sendData(um, FreezeMoneyResp.class);
	}


	/**
	 * 平台转账
	 * @param  at 平台转账参数
	 * @return applicationTransferReq 平台转账返回参数
	 */
	public static ApplicationTransferResp applicationTransfer(ApplicationTransfer at){
		return AllinpayUtil.sendData(at, ApplicationTransferResp.class);
	}

	/**
	 * 查询余额
	 * @param  qb 余额参数
	 * @return queryBalancereq 查询余额返回参数
	 */
	public static QueryBalanceResp queryBalance(QueryBalance qb){
		return AllinpayUtil.sendData(qb, QueryBalanceResp.class);
	}

	/**
	 * 查询订单状态
	 */
	public static OrderDetailResp orderDetail(GetOrderDetail od){
		return AllinpayUtil.sendData(od, OrderDetailResp.class);
	}

	/**
	 * 查询账户收支明细
	 */
	public static InExpDetail queryInExpDetail(QueryInExpDetail qied){
		return AllinpayUtil.sendData(qied, InExpDetail.class);
	}

}
